<?php
namespace ImiApp\Module\Member\Model\Base;

use Imi\Model\Model as Model;
use Imi\Model\Annotation\DDL;
use Imi\Model\Annotation\Table;
use Imi\Model\Annotation\Column;
use Imi\Model\Annotation\Entity;

/**
 * 用户在线表 基类
 * @Entity
 * @Table(name="fa_online", id={"id"})
 * @DDL("CREATE TABLE `fa_online` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `on_time` int(10) unsigned DEFAULT NULL COMMENT '在线时间',
  `off_time` int(10) unsigned DEFAULT NULL COMMENT '离线时间',
  `uid` int(10) unsigned DEFAULT NULL COMMENT '用户',
  `sec` int(10) unsigned DEFAULT NULL COMMENT '在线时长',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户在线表'")
 * @property int $id 
 * @property int $onTime 在线时间
 * @property int $offTime 离线时间
 * @property int $uid 用户
 * @property int $sec 在线时长
 */
abstract class OnlineBase extends Model
{
    /**
     * id
     * @Column(name="id", type="int", length=10, accuracy=0, nullable=false, default="", isPrimaryKey=true, primaryKeyIndex=0, isAutoIncrement=true)
     * @var int
     */
    protected $id;

    /**
     * 获取 id
     *
     * @return int
     */ 
    public function getId()
    {
        return $this->id;
    }

    /**
     * 赋值 id
     * @param int $id id
     * @return static
     */ 
    public function setId($id)
    {
        $this->id = $id;
        return $this;
    }

    /**
     * 在线时间
     * on_time
     * @Column(name="on_time", type="int", length=10, accuracy=0, nullable=true, default="", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
     * @var int
     */
    protected $onTime;

    /**
     * 获取 onTime - 在线时间
     *
     * @return int
     */ 
    public function getOnTime()
    {
        return $this->onTime;
    }

    /**
     * 赋值 onTime - 在线时间
     * @param int $onTime on_time
     * @return static
     */ 
    public function setOnTime($onTime)
    {
        $this->onTime = $onTime;
        return $this;
    }

    /**
     * 离线时间
     * off_time
     * @Column(name="off_time", type="int", length=10, accuracy=0, nullable=true, default="", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
     * @var int
     */
    protected $offTime;

    /**
     * 获取 offTime - 离线时间
     *
     * @return int
     */ 
    public function getOffTime()
    {
        return $this->offTime;
    }

    /**
     * 赋值 offTime - 离线时间
     * @param int $offTime off_time
     * @return static
     */ 
    public function setOffTime($offTime)
    {
        $this->offTime = $offTime;
        return $this;
    }

    /**
     * 用户
     * uid
     * @Column(name="uid", type="int", length=10, accuracy=0, nullable=true, default="", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
     * @var int
     */
    protected $uid;

    /**
     * 获取 uid - 用户
     *
     * @return int
     */ 
    public function getUid()
    {
        return $this->uid;
    }

    /**
     * 赋值 uid - 用户
     * @param int $uid uid
     * @return static
     */ 
    public function setUid($uid)
    {
        $this->uid = $uid;
        return $this;
    }

    /**
     * 在线时长
     * sec
     * @Column(name="sec", type="int", length=10, accuracy=0, nullable=true, default="", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
     * @var int
     */
    protected $sec;

    /**
     * 获取 sec - 在线时长
     *
     * @return int
     */ 
    public function getSec()
    {
        return $this->sec;
    }

    /**
     * 赋值 sec - 在线时长
     * @param int $sec sec
     * @return static
     */ 
    public function setSec($sec)
    {
        $this->sec = $sec;
        return $this;
    }

}
